home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Development Tools & Languages / Eenie / MEenie.cp < prev    next >
Encoding:
Text File  |  1994-11-14  |  1.1 KB  |  43 lines  |  [TEXT/MPS ]

  1. // MEenie.cp
  2. // Copyright © 1991 by Apple Computer, Inc. All rights reserved.
  3.  
  4.  
  5. // INCLUDES ---------------------------------------------------------------------------
  6.  
  7. #include "UEenie.h"
  8. #include "EenieRez.h"
  9.  
  10.  
  11. // T H E   M A I N    P R O G R A M -----------------------------------------------------
  12.  
  13. #pragma push
  14. #pragma processor 68000
  15.  
  16.  
  17. TAdornerApplication* gAdornerApplication;    // the application object 
  18.  
  19. void main()
  20. {
  21.     InitToolBox();                            // essential toolbox and utilities initialization
  22.  
  23.     // make sure we can run
  24.     if (ValidateConfiguration(gConfiguration) && gConfiguration.hasColorQD){                    
  25.         // we made it! Continue with remainder of initialization 
  26.         
  27.         InitUMacApp(8);                        // initialize MacApp; 8 calls to MoreMasters
  28.         InitUDialog();                        // initialize the TDialog view handling
  29.  
  30.         // construct a new TAdornerApplication object, allocation errors are checked for.
  31.         gAdornerApplication = new TAdornerApplication;
  32.         gAdornerApplication->IAdornerApplication(kFileType, kSignature);
  33.  
  34.         gAdornerApplication->Run();         // run the application, when it's done - exit.
  35.     }
  36.     else
  37.         StdAlert(phUnsupportedConfiguration);
  38. }
  39.  
  40. #pragma pop
  41.  
  42.  
  43.